// 常量：链接类型 - 页面
const LINK_TYPE_PAGE = 'PAGE'
const LINK_TYPE_MINI = 'MINI'

// 基础页面
const basics = {
  title: '基础页面',
  key: 'basics',
  data: [
    {
      id: 'cb344ba',
      title: '商城首页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'pages/index/index',
      },
    },
    {
      id: 'c37c2ee',
      title: '分类页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/category/category',
      },
    },
    {
      id: 'bb2f7f1',
      title: '购物车',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'pages/cart/cart',
      },
    },
    {
      id: 'a013c9e',
      title: '个人中心',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'pages/user/user',
      },
    },
    {
      id: 'a013c64',
      title: '充值中心',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageUser/recharge/recharge',
      },
    },
    {
      id: 'a013c6ss',
      title: '开发中',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/not-found/not-found',
      },
    },
  ],
}

// 商城页面
const store = {
  title: '商城页面',
  key: 'store',
  data: [
    {
      id: '995bf1c',
      title: '商品列表页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/goods/goods',
        query: {},
      },
      form: [
        {
          key: 'query.categoryId',
          lable: '分类ID',
          tips: '商品管理 -> 商品分类',
        },
        {
          key: 'query.search',
          lable: '关键词',
          tips: '搜索的关键词，用于匹配商品名称',
        },
      ],
    },
    {
      id: '6wawb10',
      title: '商品详情页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/goods-detail/goods-detail',
        query: {},
      },
      form: [
        {
          key: 'query.goodsId',
          lable: '商品ID',
          required: true,
          // value: '10001',    // 默认值
          tips: '商品管理 - 商品列表', // 字段提示
        },
      ],
    },
    {
      id: '88lxeey',
      title: '商品搜索页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/goods-search/goods-search',
      },
    },
    {
      id: '91th4ss',
      title: '自定义页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/custom/custom',
        query: {},
      },
      form: [
        {
          key: 'query.pageId',
          lable: '页面ID',
          required: true,
          tips: '店铺管理 -> 店铺页面',
        },
      ],
    },

    {
      id: 'ugrauzv',
      title: '文章列表页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/article/article',
        query: {},
      },
      form: [
        {
          key: 'query.categoryId',
          lable: '分类ID',
          tips: '内容管理 -> 文章分类',
          value: '',
        },
      ],
    },
    {
      id: 'u1v6aux',
      title: '文章详情页',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/article-detail/article-detail',
        query: {},
      },
      form: [
        {
          key: 'query.articleId',
          lable: '文章ID',
          required: true,
          tips: '内容管理 -> 文章列表',
        },
      ],
    },
  ],
}

// 个人中心
const personal = {
  title: '个人中心',
  key: 'personal',
  data: [
    {
      id: '7b345f6',
      title: '我的订单',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageOrder/order/order',
        query: {},
      },
      form: [
        {
          key: 'query.dataType',
          lable: '订单类型',
          required: true,
          value: 'all', // 默认值
          tips: 'all 全部<br>payment 待支付<br>delivery 待发货<br>received 待收货', // 字段提示
        },
      ],
    },
    {
      id: '03b9290',
      title: '我的优惠券',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packgeUser/coupon/coupon',
      },
    },
    {
      id: '03b9293',
      title: '我的积分',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packgeUser/points/points',
      },
    },
    {
      id: '56sswhq',
      title: '领券中心',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/coupon/coupon',
      },
    },
    {
      id: '0c25051',
      title: '收货地址',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/address/address',
      },
    },
    {
      id: '3558c27',
      title: '帮助中心',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageCommon/help/help',
      },
    },
  ],
}

// 营销中心
const market = {
  title: '营销中心',
  key: 'market',
  data: [
    {
      id: '03b92901',
      title: '组合套餐',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/bundling/index',
      },
    },
    {
      id: '03b92902',
      title: '秒杀活动',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/seckill/index',
      },
    },
    {
      id: '03b92903',
      title: '限时折扣',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/discount/index',
      },
    },
    {
      id: '03b92904',
      title: '外卖',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/takeout/index/index',
      },
    },
    {
      id: '03b929044',
      title: '门店团购',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/group/index/index',
      },
    },
    {
      id: '03b92905',
      title: '社区拼团',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/community/index/index',
      },
    },
    {
      id: '03b92906',
      title: '分销中心',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/fenxiao/center/center',
      },
    },
    {
      id: '03b929064545',
      title: '一件代发',
      type: LINK_TYPE_PAGE,
      param: {
        path: 'packageMarket/shipping/index/index',
      },
    },
  ],
}

// 小程序跳转
const miniApps = {
  title: '跳转小程序',
  key: 'miniApps',
  data: [
    {
      id: 'wx8768cb998bfe5915',
      title: '小吕烤肉',
      type: LINK_TYPE_MINI,
      param: {
        appId: 'wx8768cb998bfe5915',
        name: '小吕烤肉',
        storeId: 10009,
      },
    },
    {
      id: 'wxd7673d31c0f36da1',
      title: '惠民生鲜',
      type: LINK_TYPE_MINI,
      param: {
        appId: 'wxd7673d31c0f36da1',
        name: '惠民生鲜',
        storeId: 10009,
      },
    },
  ],
}

export const linkList = [basics, store, personal, market,miniApps]
